package com.sinodata.bsm.common.vo;

// default package

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * UsabilityValue entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "USABILITY_VALUE")
public class UsabilityValue implements java.io.Serializable {

    // Fields

    private Long id;
    private Long resUsabilityId;
    private Long usabilityValue;
    private Date usabilityTime;

    // Constructors

    /** default constructor */
    public UsabilityValue() {
    }

    /** minimal constructor */
    public UsabilityValue(Long id) {
        this.id = id;
    }

    /** full constructor */
    public UsabilityValue(Long id, Long resUsabilityId, Long usabilityValue, Date usabilityTime) {
        this.id = id;
        this.resUsabilityId = resUsabilityId;
        this.usabilityValue = usabilityValue;
        this.usabilityTime = usabilityTime;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "USABILITY_VALUE_SEQ")
    @Column(name = "ID", unique = true, nullable = false, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "USABILITY_ID", unique = false, nullable = true, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getResUsabilityId() {
        return resUsabilityId;
    }

    public void setResUsabilityId(Long resUsabilityId) {
        this.resUsabilityId = resUsabilityId;
    }

    @Column(name = "USABILITY_VALUE", unique = false, nullable = true, insertable = true, updatable = true, precision = 22, scale = 0)
    public Long getUsabilityValue() {
        return this.usabilityValue;
    }

    public void setUsabilityValue(Long usabilityValue) {
        this.usabilityValue = usabilityValue;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "USABILITY_TIME", unique = false, nullable = true, insertable = true, updatable = true, length = 7)
    public Date getUsabilityTime() {
        return this.usabilityTime;
    }

    public void setUsabilityTime(Date usabilityTime) {
        this.usabilityTime = usabilityTime;
    }

}